// for(arg of args){
	const stock_id = args.stockId;
	const item_id = args.itemId;
	const shop_id = args.shopId;
	const fn_sku = args.fnSku;
	lib.dbQueryJsonArray(
	`SELECT
	ip.item_id AS itemId,
CASE
		wb.type 
		WHEN 5 THEN
		"可用量" 
		WHEN 6 THEN
		"次品量" 
	END AS type,
	ip.stock_qty AS stockQty
FROM
	inventory_placement ip
	LEFT JOIN warehouse_bin wb ON wb.id = ip.bin_id 
WHERE
	ip.stock_id = ? 
	AND ip.item_id = ? 
	AND ip.shop_id = ? 
	AND ip.fn_sku = ? 
	AND ip.del_flag = 0 
	AND wb.del_flag = 0;`,stock_id,item_id,shop_id,fn_sku);

// }
